package com.dstz.agilebpm.sys.autoconfiguration;

import com.dstz.base.core.spring.AbScheduledBeanPostProcessor;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * AB调度自动配置
 *
 * @author wacxhs
 */
@Configuration
public class AbScheduledAutoConfiguration {


    @Bean
    @ConditionalOnProperty(value = "ab.schedule.enable", havingValue = "true")
    public AbScheduledBeanPostProcessor abScheduledBeanPostProcessor() {
        return new AbScheduledBeanPostProcessor();
    }


}
